package com.zzjson.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2019 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.controller</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2019年11月13日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
@RestController
@RefreshScope
public class ScopeController {
	@Value("${my.name:default}")
	private String name;

	@RequestMapping("/name")
	public String name() {
		return name;
	}
}